<el-form ref="form" :model="form" :rules="rules" label-width="120px">
    <el-row>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="出货日期"
                              prop="GWEC002">
                    <el-date-picker
                            v-model="form.GWEC002"
                            type="date"
                            placeholder="请选择出货日期"
                            value-format="yyyy-MM-dd"
                            style="width: 100%">
                    </el-date-picker>
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="客户" prop="GWEC005">
                    <el-input id="GWEC005" v-model="form.GWAKL004" readonly clearable>
                        <i class="el-icon-search el-input__icon" @click="openGwak" slot="suffix"></i>
                    </el-input>
                    <!--<button type="button" class="layerBtn"-->
                            <!--@click="openGwakWindow"></button>-->
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="归属组织" prop="GWEC012">
                    <el-input id="GWEC012" v-model="form.NAME_ORG" readOnly clearable>
                        <i class="el-icon-search el-input__icon" @click="openOrg" slot="suffix"></i>
                    </el-input>
                    <!--<button type="button" class="layerBtn" @click="openOrgWindow"></button>-->
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="人员" prop="GWEC011">
                    <el-input id="GWEC011" v-model="form.NAME_USER" readOnly clearable>
                        <i class="el-icon-search el-input__icon" @click="openUser" slot="suffix"></i>
                    </el-input>
                    <!--<button type="button" class="layerBtn" @click="openUserWindow"></button>-->
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="出货单号" prop="GWECDOCNO">
                    <el-input id="GWECDOCNO" v-model="form.GWECDOCNO" readonly></el-input>
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="归属法人">
                    <el-input id="GWECMLEGAL" v-model="form.NAME_AZP" readOnly clearable @clear="clearMlegal">
                        <i class="el-icon-search el-input__icon" @click="openAzp" slot="suffix"></i>
                    </el-input>
                    <!--<button type="button" class="layerBtn" @click="openAzpWindow"></button>-->
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="ERP营运中心">
                    <el-input id="GWECPLANT" v-model="form.AZP02" readOnly></el-input>
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="到货地点">
                    <el-input v-model="form.GWEC107"></el-input>
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="8" :md="8" :lg="8" :xl="8">
            <div class="grid-content bg-purple">
                <el-form-item label="联系人">
                    <el-input v-model="form.GWEC106"></el-input>
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="23" :md="16" :lg="16" :xl="16">
            <div class="grid-content bg-purple">
                <el-form-item label="物流信息">
                    <el-input v-model="form.GWEC108"></el-input>
                </el-form-item>
            </div>
        </el-col>
        <el-col :xs="23" :sm="23" :md="23" :lg="23" :xl="23">
            <div class="grid-content bg-purple">
                <el-form-item label="备注">
                    <el-input type="textarea" id="GWEC015" v-model="form.GWEC015"></el-input>
                </el-form-item>
            </div>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re">
                <div class="pos-ab">
                    <el-button type="success" icon="el-icon-plus" size="small" class="z-depth-2"
                                           @click="add"
                                           :disabled="isDetail">添加
                </el-button>
                    <el-button type="danger" icon="el-icon-delete" size="small" class="z-depth-2"
                               @click="delRows"
                               :disabled="isDetail">删除
                    </el-button>
                </div>
                <div class="table-responsive">
                    <table id="gwei005_edit_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwei005_edit_table">
                    </table>
                </div>
            </div>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" :disabled="isDetail" @click="save">保存
            </el-button>
        </el-col>

    </el-row>

</el-form>
<script>
    require(["pc/crm/gwei005_edit"], $.noop);
</script>
